<template>
	<div>
		<!--主机名称输入框-->
		<baseInput ref="nameInput" :defaultValue="defaultValue" :placeholder="placeHolder" @change="changeHandel"></baseInput>
	</div>
</template>

<script>
	import baseInput from "@/view/components/input/input";
	export default {
		components : {
			baseInput
		},
		props : [
			"defaultValue",
		],
		data(){
			return {
				placeHolder : "请输入主机名称",
			}
		},
		methods : {
			changeHandel(name , v){
				this.$emit("change","hostNameInput",v)
			},
			reset(){
				this.$refs.nameInput.reset()
			}
		}
	}
</script>

<style>
</style>